package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.main.date.publish.movie.IPublishMoivePresenter;
import com.kelvin.paopao.module.main.date.publish.movie.PublishMovieActivity;
import com.kelvin.paopao.module.main.date.publish.movie.PublishMoviePresenter;
import com.kelvin.paopao.module.main.date.publish.sing.IPublishSingPresenter;
import com.kelvin.paopao.module.main.date.publish.sing.PublishSingActivity;
import com.kelvin.paopao.module.main.date.publish.sing.PublishSingPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/14.
 */

@Module
public class PublishSingModule {
    private PublishSingActivity mView;

    public PublishSingModule(PublishSingActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IPublishSingPresenter providePresenter() {
        return new PublishSingPresenter(mView);
    }
}
